From: Jonas Ã…dahl Date: Wed, 25 Feb 2026 20:19:57 +0000 (+0100) Subject: Pass NULL as color state when capturing stage X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~26^2~1^2~32 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2b903de133e02b91ae43c7347a1b3cdad4fb5810;p=gnome-shell.git Pass NULL as color state when capturing stage NULL means the default color state of the stage will be used, which is what happened before. Part-of: --- diff --git a/js/ui/layout.js b/js/ui/layout.js index e68780d0e..7b8af4726 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -1408,7 +1408,7 @@ class ScreenTransition extends Clutter.Actor { height: global.screen_height, }); const [, , , scale] = global.stage.get_capture_final_size(rect); - this.content = global.stage.paint_to_content(rect, scale, Clutter.PaintFlag.NO_CURSORS); + this.content = global.stage.paint_to_content(rect, scale, null, Clutter.PaintFlag.NO_CURSORS); this.opacity = 255; this.show(); diff --git a/src/shell-screenshot.c b/src/shell-screenshot.c index d1ded8c0b..facb6b530 100644 --- a/src/shell-screenshot.c +++ b/src/shell-screenshot.c @@ -340,6 +340,7 @@ do_grab_screenshot (ShellScreenshot *screenshot, cairo_image_surface_get_data (image), cairo_image_surface_get_stride (image), COGL_PIXEL_FORMAT_CAIRO_ARGB32_COMPAT, + NULL, paint_flags, &error)) { @@ -492,6 +493,7 @@ grab_screenshot_content (ShellScreenshot *screenshot, screenshot->scale = scale; content = clutter_stage_paint_to_content (stage, &screenshot_rect, scale, + NULL, CLUTTER_PAINT_FLAG_NO_CURSORS, &error); if (!content)